var Mock = require('mockjs')
const Random = Mock.Random;
function getData(){
    var arr=[]
    for(var i=0;i<10000;i++){
        var json={
            id:Random.id(),
            name:Random.cword(3),
            img:Random.image('10x10',Random.color()),
            text:Random.cparagraph(3),
            num:Random.natural(0,1000)
        }
        arr.push(json)
    }
    return arr
}
const getDataList=Mock.mock('/getData',getData)
export default{
    getDataList
}